package icu.zqyhdm.blog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Description 文章的标签实体类
 * @Author lifu
 * @Date 2021/6/22 15:15
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("friend")
@ApiModel(description = "用户好友关系")
public class Friend implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户id")
    @TableField(value = "user_id")
    private Integer userId;

    @ApiModelProperty(value = "好友id")
    @TableField(value = "friend_id")
    private Integer friendId;

}
